package force;
/**
 * @author Xi Du and Michael Deng
 *
 */
public class WallRepulsion extends ForceVector {
    /**
     * @param distance
     */
    private static  double  distance = 1;
    /**
     * @param myDirection
     */
    private int myDirection;
    /**
     * constructor.
     * @param direction angle
     * @param magnitude magnitude of force
     * @param exp exp value
     */
    public WallRepulsion(final int direction, final double magnitude,
            final double exp) {
        super(direction, magnitude / Math.pow(distance, exp));
        myDirection = direction;
    }
    /**
     * @return myDirection
     */
   public final int getmyDirection() {
       return myDirection;
   }
   /**
    * @param d set distance
    */
   public  final void setdistance(final double d) {
       distance = d;
   }
}
